package main

import (
	"fmt"
)

func println(p string) {
	fmt.Println(p)
}

func main() {

	var tesks []string = []string{"a", "b", "c"}

	for _, v := range tesks {
		go println(v)
	}

	fmt.Println("第二中方式")

	for _, v := range tesks {
		go func(s string) {
			fmt.Println(s)
		}(v)
	}

	// time.Sleep(1000)

}
